@import url(./texture.css);

:root {
  --rc-theme-color: #1e78eb;
  --rc-text-color-light: #2D2D2D;
  --rc-text-color: var(--rc-text-color-light);
  --rc-button-hover-bgcolor-light: rgba(0, 0, 0, 0.08);

  --rc-window-box-bgcolor-light: #FFFFFF;
  --rc-window-box-blur-bgcolor-light: rgba(255, 255, 255, 0.6);
  --rc-window-box-blur-bgcolor-1-light: rgba(255, 255, 255, 0.3);
  --rc-main-color: #F6F6F6;

  --rc-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.1);
  --rc-shadow-light: 0px 0px 12px rgba(0, 0, 0, 0.12);
  
  --rc-header-color-light: #F2F6FC;
  --rc-header-color: var(--rc-header-color-light);
  --rc-header-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);

  --rc-search-border-color: rgba(30, 120, 235, 0.3);
  --rc-search-bgcolor: rgba(30, 120, 235, 0.15);
  --rc-search-box-shadow: var(--rc-shadow);
  --rc-search-box-bgcolor: #FFFFFF;
  --rc-search-pagination-blur-bgcolor: rgba(235, 235, 235, 0.6);

  --rc-window-box-shadow: var(--rc-shadow);
  --rc-window-box-bgcolor: var(--rc-window-box-bgcolor-light);
  --rc-window-box-blur-bgcolor: var(--rc-window-box-blur-bgcolor-light);
  --rc-window-close-btn-color: #F56C6C;

  --rc-scrollbar-hove-bgcolor: rgba(0, 0, 0, 0.2);
  --rc-scrollbar-thumb-bgcolor: rgba(0, 0, 0, 0.25);
  --rc-scrollbar-thumb-hover-bgcolor: rgba(0, 0, 0, 0.3);

  --rc-button-hover-bgcolor: var(--rc-button-hover-bgcolor-light);

  --rc-latest-chapter-color: #54CB39;

  --rc-loading-mask-bgcolor: rgba(255, 255, 255, 0.9);

  --rc-error-color: #EF3C3C;

  --el-text-color-regular: var(--rc-text-color) !important;

  --rc-card-bgcolor: #FFFFFF;

  --rc-settings-window-bgcolor: #F5F5F5;

  --rc-menu-window-box-blur-bgcolor: rgba(255, 255, 255, 0.8);
  --rc-menu-item-hover-bgcolor: rgba(30, 30, 30, 0.2);

  --rc-blockquote-border-color: #DADADA;
  --rc-blockquote-color: #353535;

  --rc-list-item-bgcolor: rgba(200, 200, 200, 0.3);
}
html {
  font-size: 10px;
}
body {
  font-size: 16px;
}
html,
body,
#app {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  color: var(--rc-text-color);
}

* {
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-drag: none;
  outline-color: var(--rc-theme-color);
  font-family: 'HarmonyOS Sans SC', 'Microsoft YaHei', 'PingFang SC', Arial, Helvetica;
  
  &::selection {
    background-color: rgba(30, 119, 235, 0.6);
    color: #1C1C1C;
  }
}

svg {
  outline: none;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--rc-theme-color);
}

button {
  border: none;
  background: transparent;
}

.app-drag {
  -webkit-app-region: drag;
}

.app-no-drag {
  -webkit-app-region: none;

  * {
    -webkit-app-region: none;
  }
}

.app-blur {
  backdrop-filter: blur(30px);
}

.li-selected {
  color: var(--rc-theme-color) !important;
}

.rc-scrollbar {
  overflow-x: auto;
  overflow-y: auto;
}

.rc-scrollbar-behavior {
  scroll-behavior: smooth;
}

*::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

*::-webkit-scrollbar:hover {
  cursor: default;
  background-color: var(--rc-scrollbar-hove-bgcolor);
}

*::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: var(--rc-scrollbar-thumb-bgcolor);
}

*::-webkit-scrollbar-thumb:hover {
  cursor: default;
  background-color: var(--rc-scrollbar-thumb-hover-bgcolor);
}

.rc-button {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rc-text-color);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  &:hover {
    background-color: var(--rc-button-hover-bgcolor);
  }
  &:active {
    transform: scale(0.85);
  }
}

.rc-error-color {
  color: var(--rc-error-color);
}

.rc-text-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

ul.rc-help {
  list-style: initial;

  li {
    margin-left: 1em;
  }
  li.em-2 {
    margin-left: 2em;
  }
}

.loading .el-loading-mask {
  background-color: var(--rc-header-color);
  z-index: 999;
}

.container {
  .no-result {
    position: absolute;
    left: calc(50% - 2.5px);
    top: calc(50% - 5px);
    transform: translate(-50%, -50%);

    .el-result {
      padding: 0 !important;

      .el-result__title p {
        font-size: 15px !important;
      }
    }
  }
}

.el-pagination {
  --el-pagination-button-color: var(--rc-text-color);
  --el-pagination-hover-color: var(--rc-theme-color);
}

.el-table {
  tr {
    background-color: transparent !important;

    td:is(.el-table-fixed-column--right) {
      background-color: var(--el-table-tr-bg-color);
    }
  }
  th.el-table__cell {
    background-color: transparent !important;
    &:is(.el-table-fixed-column--right) {
      background-color: var(--el-table-tr-bg-color) !important;
    }
  }
}

.el-input {

  .el-input__wrapper {
    --el-input-focus-border-color: var(--rc-theme-color);
    cursor: default;

    .el-input__inner[readonly],
    .el-input__inner[readonly="true"] {
      cursor: default;
    }
  }
}

.el-select__wrapper.is-focused,
.el-select-dropdown__item.is-selected {
  --el-color-primary: var(--rc-theme-color);
}

.settings-help {
  .el-popover__title {
    font-size: 15px;
  }
  .help-content {
    font-size: 13px;
  }
}

.el-link:hover {
  --el-link-hover-text-color: var(--rc-theme-color);
}

.el-slider {
  --el-slider-main-bg-color: var(--rc-theme-color);
}